import request from '@/utils/request.js'

export function selectClass(userId) {
	const data = {
		userId: userId
	}
	return request({
		url: '/myclass/selectClass',
		method: 'GET',
		data: data
	})
}
// 获取家长头像
export function getParentUrl(parentId,campusId) {
	const data = {
		parentId: parentId,
		campusId: campusId
	}
	return request({
		url: '/attend/getParentUrl',
		method: 'GET',
		data: data
	})
}
// 获取家长孩子
export function getCourseStu(parentId,campusId) {
	const data = {
		parentId: parentId,
		campusId: campusId
	}
	return request({
		url: '/attend/getCourseStu',
		method: 'GET',
		data: data
	})
}
// 获取孩子班级
export function getCourseCla(stuId) {
	const data = {
		stuId: stuId
	}
	return request({
		url: '/attend/getCourseCla',
		method: 'GET',
		data: data
	})
}

// 获取学生班级考勤信息
export function getAttend(stuId,claId,month) {
	const data = {
		stuId: stuId,
		claId: claId,
		month: month
	}
	return request({
		url: '/attend/getAttend',
		method: 'GET',
		data: data
	})
}

// 获取学生班级指定日期的课时考勤信息
export function getAttendByDay(stuId,claId,day) {
	const data = {
		stuId: stuId,
		claId: claId,
		day: day
	}
	return request({
		url: '/attend/getAttendByDay',
		method: 'GET',
		data: data
	})
}


export function selectStu(classId) {
	const data = {
		claId: classId
	}
	return request({
		url: '/myclass/selectStu',
		method: 'GET',
		data: data
	})
}

